package com.ljx.thread.thread06;

/**
 * @author LJX
 * @Description: TODO
 * @Date: 2022/11/1 19:51
 * @Version 1.0
 */
public class Test {
	public static void main(String[] args) {
		BankCard bankCard = new BankCard();

		Boy boy = new Boy(bankCard);
		Girl girl = new Girl(bankCard);

		Thread nanHai = new Thread(boy,"男孩");
		Thread nvHai = new Thread(girl, "女孩");

		nanHai.start();
		nvHai.start();
	}
}
